package com.example.news.entity;

import com.orm.SugarRecord;
import com.orm.dsl.Column;
import com.orm.dsl.Table;
import com.orm.dsl.Unique;

import java.io.Serializable;

/**
 * @author Admin
 */
//@Table(name = "user")
public class User extends SugarRecord implements Serializable {
    @Unique
    private String phone;
    private String pwd;
//    @Column(name = "user_name")
    private String userName;
//    @Column(name = "nick_name")
    private String nickName;
    private String userPic;
    public User(){

    }

    public User(String phone, String pwd) {
        this.phone = phone;
        this.userName = phone;
        this.pwd = pwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserPic() {
        return userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }
}
